import request from "@/utils/request.js";

//易入管理
export function DemandList(params) {
  return request({
    url: "/demand/my",
    method: "get",
    params: params,
  });
}

//所有经纪人 
export function AgentAll(params) {
    return request({
      url: "/agent/all",
      method: "get",
      params: params,
    });
  }

//下拉参数列表 
export function DemandParams(params) {
    return request({
      url: "/demand/params",
      method: "get",
      params: params,
    });
  }

//新增和编辑 
export function DemandSave(data) {
    return request({
      url: "/demand/save",
      method: "post",
      data ,
    });
  }

//抢单历史
export function DemandOrderList(data) {
    return request({
      url: "/demand/demand_order_list",
      method: "post",
      data ,
    });
  }

//编辑详情 
export function DemandDetail(params) {
    return request({
      url: "/demand/detail",
      method: "get",
      params: params,
    });
  }

//易入删除 
export function DemandDelete(data) {
    return request({
      url: "/demand/delete",
      method: "post",
      data ,
    });
  }

//易入管理下架 
export function DemandCancel(data) {
  return request({
    url: "/demand/cancel",
    method: "post",
    data ,
  });
}